home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha 2008 January / Cybermycha 1_2008.iso / Data.cab / _D88198971E4940BBB0FE10B412AE3A56 < prev    next >
Encoding:
Text File  |  2004-03-15  |  827 b   |  58 lines

  1.  
  2. Shader()
  3. {
  4.     Pass()
  5.     {
  6.         Pixelshader("clouds.psh")
  7.         tmu()
  8.         {
  9.             Texture()
  10.             {
  11.                 Mapchannel(0)
  12.                 Image("CloudsBorder.dds")
  13.             }
  14.         }
  15.  
  16.         !include("__Clouds.mtt")
  17.  
  18.         BlendFunc("src_alpha", "inv_src_alpha")
  19.         depthfunc("lequal", 0)
  20.         NoFog()
  21.  
  22.     }
  23.     sortweight("preopaque")
  24.     Cull("cw")
  25. }
  26.  
  27.  
  28. Shader()
  29. {
  30.     Pass()
  31.     {
  32.         tmu()
  33.         {
  34.             Texture()
  35.             {
  36.                 Mapchannel(0)
  37.                 Image("CloudsBorder.dds")
  38.             }
  39.             ColorOp("arg1", "tfactor", "current", "current")
  40.             AlphaOp("arg1", "texture", "current", "current")
  41.         }
  42.  
  43.         !include("__Clouds.mtt")
  44.  
  45.         Tfactor(%daycolor_r, %daycolor_g, %daycolor_b, 1)
  46.  
  47.         BlendFunc("src_alpha", "inv_src_alpha")
  48.         depthfunc("lequal", 0)
  49.         NoFog()
  50.  
  51.     }
  52.     sortweight("preopaque")
  53.     Cull("cw")
  54. }
  55.  
  56.  
  57.  
  58.